package hcn.protocol.brandnew.dengji.jianyanyuyue;

import lombok.Data;
import javax.xml.bind.annotation.*;
import java.util.List;
import hcn.protocol.brandnew.BaseRequest;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import ctd.util.xml.jaxb.DateTimeAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;


/**
 * 检检验预约排班查询-响应消息 - ODS_02060002_SUC
 *
 * @author enjoyLife
 */
@Data
@XmlRootElement(name = "Data")
@XmlAccessorType(XmlAccessType.FIELD)
public class LabAppointQueryDateResponse {

    /**
     * 采样区编码
     */
    @XmlElement(name = "SampleCollectAreaId")
    private String sampleCollectAreaId;
    /**
     * 采样区名称
     */
    @XmlElement(name = "SampleCollectAreaName")
    private String sampleCollectAreaName;
    /**
     * 日期集合
     */
    @XmlElementWrapper(name = "Datelists")
    @XmlElement(name = "Datelist")
    private List<Datelist> datelists;

    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    public static class Datelist {

        /**
         * 预约采样日期时间
         */
        @XmlElement(name = "AppointsVisitDateTime")
        @XmlJavaTypeAdapter(DateTimeAdapter.class)
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date appointsVisitDateTime;
        /**
         * 可预约标识
         */
        @XmlElement(name = "AppointsValid")
        private Byte appointsValid;
        /**
         * 停止采集标识
         */
        @XmlElement(name = "StopCollectFlag")
        private Boolean stopCollectFlag;
        /**
         * 停止采集原因
         */
        @XmlElement(name = "StopCollectDescribe")
        private String stopCollectDescribe;
    }

}
